import request from '@/utils/request'

// 查询电网排放系数列表
export function listCompanyEletricity(query) {
  return request({
    url: '/busi/companyEletricity/list',
    method: 'get',
    params: query
  })
}

// 查询电网排放系数详细
export function getCompanyEletricity(id) {
  return request({
    url: '/busi/companyEletricity/' + id,
    method: 'get'
  })
}

// 新增电网排放系数
export function addCompanyEletricity(data) {
  return request({
    url: '/busi/companyEletricity',
    method: 'post',
    data: data
  })
}

// 修改电网排放系数
export function updateCompanyEletricity(data) {
  return request({
    url: '/busi/companyEletricity',
    method: 'put',
    data: data
  })
}

// 删除电网排放系数
export function delCompanyEletricity(id) {
  return request({
    url: '/busi/companyEletricity/' + id,
    method: 'delete'
  })
}
